<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">
   <h:outputStylesheet>
        .cols {
        vertical-align: top;
        }
        
          
    </h:outputStylesheet>
    <h:form id="form">
        <h:panelGrid columns="2" columnClasses="cols,cols" width="200">
            <rich:panelMenu style="width:200px" itemMode="ajax" groupMode="ajax" groupExpandedLeftIcon="triangleUp"
                groupCollapsedLeftIcon="triangleDown" topGroupExpandedRightIcon="chevronUp"
                topGroupCollapsedRightIcon="chevronDown" itemLeftIcon="disc" itemChangeListener="#{panelMenuBean.updateCurrent}">
                <rich:panelMenuGroup label="Utenti">
                    <rich:panelMenuItem label="Gestione Utenti" name="Gestione Utenti" action="#{handlerUtente.findAll()}" />
                </rich:panelMenuGroup>
                <rich:panelMenuGroup label="Ruoli">
                    <rich:panelMenuItem label="Gestione Ruoli" name="Gestione Ruoli" action="#{handlerRuolo.findAll()}" />
                 </rich:panelMenuGroup>
                <rich:panelMenuGroup label="Applicazioni">
                     <rich:panelMenuItem label="Gestione Applicazioni" name="Gestione Applicazioni" action="#{handlerApplicazione.findAll()}" />
                </rich:panelMenuGroup>
                <rich:panelMenuGroup label="Operazioni">
                     <rich:panelMenuItem label="Gestione Operazione" name="Gestione Operazione" action="#{handlerApplicazione.findAll()}" />
                </rich:panelMenuGroup>
            </rich:panelMenu>
            <a4j:outputPanel ajaxRendered="true">
                <rich:panel rendered="#{not empty panelMenuBean.current}">
                    <h:outputText value="#{panelMenuBean.current} selected" id="current" />
                </rich:panel>
            </a4j:outputPanel>
        </h:panelGrid>
    </h:form>
   
</ui:composition>